package com.quwan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;
import lombok.experimental.Accessors;

/**
*
*
* @author quan
* @date 2021-10-29 0:46
*/
 

@Data
@TableName(value = "t_order_split")
@Accessors(chain = true)
public class TOrderSplit {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 订单id
     */
    @TableField(value = "c2c_order_id")
    private Long c2cOrderId;

    /**
     * 公司抽成
     */
    @TableField(value = "company_commission")
    private BigDecimal companyCommission;

    /**
     * 会员金额
     */
    @TableField(value = "member_commission")
    private BigDecimal memberCommission;

    /**
     * 订单原价
     */
    @TableField(value = "origin_order_price")
    private BigDecimal originOrderPrice;

    @TableField(value = "spread_money")
    private BigDecimal spreadMoney;

    @TableField(value = "spread_scale")
    private BigDecimal spreadScale;


    /**
     * 实际价格
     */
    @TableField(value = "real_price")
    private BigDecimal realPrice;

    @TableField(value = "status")
    private Integer status;

    /**
     * 订单类型 1发单 2派单
     */
    @TableField(value = "order_type")
    private Integer orderType;

    @TableField(value = "add_time")
    private LocalDateTime addTime;
}